package com.refusea.train.domain.vo

/**
 * @author Zhang Yan 2024/4/4
 **/
data class PaginationVo(
    // page number start from 1
    val page: Int,
    val size: Int,
    val total: Int,
    val list: List<*>,
) {
    companion object {
        fun empty(page: Int, size: Int): PaginationVo {
            return PaginationVo(page, size, 0, emptyList<Any>())
        }
    }
}
